﻿using UnityEngine;
using System.Collections;

public class scriptPared : MonoBehaviour {

	void OnTriggerEnter(Collider obj){
		if(obj.gameObject.CompareTag("Player"))
			obj.gameObject.SendMessage("cambiarEstado",0,SendMessageOptions.DontRequireReceiver);
	}
	
	void OnTriggerExit(Collider obj){
		if(obj.gameObject.CompareTag("Player"))
			obj.gameObject.SendMessage("cambiarEstado",1,SendMessageOptions.DontRequireReceiver);
	}
}
